package com.cake.entity;

import java.util.Date;

import com.cake.entity.base.BaseEntity;

public class XxCouponCode extends BaseEntity {
    /**
     * 优惠码主键
     * 表字段 : xx_coupon_code.id
     */
    private Long id;

    /**
     * 优惠劵的优惠码
     * 表字段 : xx_coupon_code.code
     */
    private String code;

    /**
     *  优惠券是否使用（0-可用 ； 1-使用 ; 2-过期）
     * 表字段 : xx_coupon_code.is_used
     */
    private Integer isUsed;

    /**
     * 优惠券使用日期
     * 表字段 : xx_coupon_code.used_date
     */
    private Date usedDate;

    /**
     * 优惠券主键
     * 表字段 : xx_coupon_code.coupon
     */
    private Long coupon;

    /**
     * 会员主键
     * 表字段 : xx_coupon_code.member
     */
    private Long member;

    /**
     * 优惠码创建时间
     * 表字段 : xx_coupon_code.create_date
     */
    private Date createDate;

    /**
     * 优惠码最新修改时间
     * 表字段 : xx_coupon_code.modify_date
     */
    private Date modifyDate;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table xx_coupon_code
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public Integer getIsUsed() {
		return isUsed;
	}

	public void setIsUsed(Integer isUsed) {
		this.isUsed = isUsed;
	}

	public Date getUsedDate() {
        return usedDate;
    }

    public void setUsedDate(Date usedDate) {
        this.usedDate = usedDate;
    }

    public Long getCoupon() {
        return coupon;
    }

    public void setCoupon(Long coupon) {
        this.coupon = coupon;
    }

    public Long getMember() {
        return member;
    }

    public void setMember(Long member) {
        this.member = member;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", code=").append(code);
        sb.append(", isUsed=").append(isUsed);
        sb.append(", usedDate=").append(usedDate);
        sb.append(", coupon=").append(coupon);
        sb.append(", member=").append(member);
        sb.append(", createDate=").append(createDate);
        sb.append(", modifyDate=").append(modifyDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}